package cn.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户收货地址表
 * </p>
 *
 * @author mp
 * @since 2025-06-16
 */
@Getter
@Setter
@TableName("user_addresses")
public class UserAddresses implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private String address;

    /**
     * 0-否 1-是
     */
    private Integer isDefault;
    @JsonFormat(pattern = "YYYY-MM-DD hh:mm:ss",timezone = "GMT-8")
    private Date createdAt;
}
